package com.qf.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qf.common.annotation.Excel;
import com.qf.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * --- ONE PIECE ---
 *
 * @author yangjiangcheng
 * @date 2025/9/3
 * @desc
 */
@Data
public class BaseDriver extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long driverId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String gender;

    /**
     * 驾照类型
     */
    @Excel(name = "驾照类型")
    private String licenseType;

    /**
     * 驾照日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "驾照日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date licenseDate;

    /**
     * 家庭住址
     */
    @Excel(name = "家庭住址")
    private String homeAddress;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 承运商ID
     */
    @Excel(name = "承运商ID")
    private Long carrierId;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("driverId", getDriverId())
                .append("name", getName())
                .append("phoneNumber", getPhoneNumber())
                .append("gender", getGender())
                .append("licenseType", getLicenseType())
                .append("licenseDate", getLicenseDate())
                .append("homeAddress", getHomeAddress())
                .append("status", getStatus())
                .append("carrierId", getCarrierId())
                .toString();
    }


}
